<template>
  <view class="score-rules">
    <!-- {{ docUrl }} -->
    <!-- <web-view :src="docUrl"></web-view> -->
     <image class="img_box" :src="docUrl" mode="widthFix">
      
     </image>
  </view>
</template>
<script setup>
import {ref} from 'vue'
import {onShow} from "@dcloudio/uni-app";
import {getDescApi} from "@/api/public";

const docUrl = ref('')
const getScoreRulesInfo = async () => {
  const res = await getDescApi('积分规则')
  const {code, data} = res
  if (code === 200) {
    console.log(data)
    docUrl.value = data[0].resourceUrl
  }
}
onShow(() =>{
  getScoreRulesInfo()
})
</script>
<style lang="less" scoped>
.img_box {
  width: 100%;
}
</style>